/* use prefix ga for gallery here */

.ga-wrapper, .ga-wrapper * { box-sizing: border-box; }
.ga-wrapper { overflow: hidden; }
.ga-list { margin: 0 -5px; }
.ga-list > div { float: left; padding: 5px;width: 50%; }
.ga-list > div > a, .ga-list > div > a img { width: 100%;display: block; }
.ga-list > div > a { color:inherit; text-decoration:none; min-height:50px; }

.ga-album-preview { position:relative; }
.ga-album-hover { opacity:0; position:absolute; top:0; left:0; right:0; bottom:0; height:100%; background:rgba(128, 128, 128, 0.5); transition:opacity ease-in 0.18s; }
.ga-album-hover i { display:block; text-align:center; color:#FFF; font-size:65px; top:50%; line-height:0; }
.ga-album-preview:hover .ga-album-hover { opacity:1; }


/* Alignment of images */
@media screen and (max-width:767px) {
    .ga-list-images > div { width: 50%; }
    .ga-list-images > div:nth-child(2n+1) { clear:left; }
}

@media screen and (min-width:768px) and (max-width:979px) {
    .ga-list-images > div { width: 33.333333333%; }
    .ga-list-images > div:nth-child(3n+1) { clear:left; }
}

@media screen and (min-width:980px) {
    .ga-list-images > div { width: 25%; }
    .ga-list-images > div:nth-child(4n+1) { clear:left; }
}

/* Alignment of albums */
@media screen and (max-width:540px) {
    .ga-list-albums > div { width: 100%; }
    .ga-list-albums > div:nth-child(1n+1) { clear:left; }
}

@media screen and (min-width:541px) and (max-width:767px) {
    .ga-list-albums > div { width: 50%; }
    .ga-list-albums > div:nth-child(2n+1) { clear:left; }
}

@media screen and (min-width:768px) /*and (max-width:979px)*/ {
    .ga-list-albums > div { width: 33.333333333%; }
    .ga-list-albums > div:nth-child(3n+1) { clear:left; }
} 

/* Blueimp Gallery default styles */
.blueimp-gallery-2sxc.blueimp-gallery-controls .indicator { display:none; }